fix(e2e): pin /nosql/new to fast anon hot-pool to stop e2e-prod timeout flake#180
Merged
Merged
Conversation
…ut flake nosql was the LAST dedicated-backing-DB service still on the slow authed (minted-pro) provision path. The authed /nosql/new path provisions a DEDICATED MongoDB per team — cold-provision > 90s on prod — which timed out the LIVE suite at the per-test limit (flaky run 27000380873 failed on /nosql/new; an earlier run failed on /vector/new). Prior PRs pinned db (#178) + queue (#177) + vector (#179) to the fast anon hot-pool; this completes the set. Systemic fix: EVERY service whose authed path provisions a dedicated backing DB (db/vector/nosql) now uses forceAnon (anon hot-pool, TTL-reaped), so none can hit the slow authed-dedicated-provision timeout. The fast, no-dedicated-DB services (cache/storage/webhook) stay on the authed/minted-account + authed-reap path, and the auth specs + claim flow + minted-account lifecycle keep exercising the on-the-fly minted account — "test accounts on the fly" coverage is retained. Adds a per-service path table (dedicated-DB? + fast-authed vs anon-hot-pool + why) to live-anon-provision.spec.ts and syncs the cohort.ts/smoke-spec comments. Secondary guard: bump playwright.live.config.ts per-test timeout 90s → 120s for extra cold-hot-pool/network headroom (the forceAnon pinning is the primary fix). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
mastermanas805
enabled auto-merge (squash)
June 5, 2026 07:07
size-limit report 📦
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
e2e-prod.ymlwas flaky: each run, a different AUTHED DEDICATED-backing-DB provision timed out at the per-test limit (`apiRequestContext.fetch: Request context disposed`). Observed: run 26999447344 green; 27000380873 failed on `/nosql/new`; an earlier run failed on `/vector/new`.Root cause: authed provisioning of a DEDICATED backing DB (postgres `/db/new`, pgvector `/vector/new`, mongo `/nosql/new`) is slow on prod (>90s cold). Prior PRs pinned db (#178), queue (#177), and vector (#179) to the fast anon hot-pool. nosql was the last dedicated one still on the slow authed path.
Fix (systemic, one PR)
Pin every dedicated-backing-DB service — db, vector, nosql — to the fast anon hot-pool (`forceAnon`) so NONE can hit the slow authed-dedicated-provision timeout.
The fast services (cache/storage/webhook) + the auth specs + the claim flow + the minted-account lifecycle keep exercising the on-the-fly minted account, so "test accounts on the fly" coverage is retained.
Audited every live spec: the only other authed calls are `/cache/new` (no dedicated DB) and `/deploy/new` (202-accepted async contract, doesn't block on a dedicated-DB build). No other authed dedicated-DB provision remains.
Secondary guard: per-test timeout 90s → 120s in `playwright.live.config.ts` (the forceAnon pinning is the primary fix).
Verification
🤖 Generated with Claude Code